<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        .con {
            width: 202px;
            height: 156px;
            background-color: gold;
        }

        .con div {
            width: 200px;
            height: 30px;
            border: 1px solid green;
            /*负值抵消边框的1px*/
            margin-top: -1px;
        }
    </style>
</head>

<body>

    <div class="con">

        <div></div>
        <div></div>
        <div></div>
        <div></div>
        <div></div>


    </div>


</body>

</html>